import Vue from 'vue'
import App from './App.vue'

// 导入element - ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)

import axios from 'axios'

// 抽离路由
import router from '@/router/index.js'
import store from '@/store/index.js'
const _axios = axios.create({
  baseURL: process.env.VUE_APP_URL,
  withCredentials: true // 跨域带cookie到后端
})
Vue.prototype.$axios = _axios

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store,
}).$mount('#app')